fix example shell script for googledir format, in both the pdf and html document.
authortsteven4 <tsteven4@gmail.com>
Tue, 9 Feb 2016 14:24:38 +0000 (07:24 -0700)
committertsteven4 <tsteven4@gmail.com>
Tue, 9 Feb 2016 14:24:38 +0000 (07:24 -0700)
xmldoc/formats/googledir.xml

index c3952a916f69e9a1c921f33814299124937881e9..c96e16deaad0bf6ff91ad05bff1e7be62debd205 100644 (file)
@@ -13,8 +13,9 @@ operating system, this shell script might be useful:
 #!/bin/sh 
 FROM="233 S. Upper Wacker Dr, Chicago, IL" 
 TO="1060 W. Addison St, Chicago, IL" 
-wget -O - "http://maps.googleapis.com/maps/api/directions/xml?origin=$FROM&destination=$TO&sensor=false" \
-2&amp;&gt;/dev/null &gt;google_map.js
-gpsbabel -i google -f google_map.js -o gpx -F google_map.gpx
+URL="http://maps.googleapis.com/maps/api/directions/xml"
+wget -O - "$URL?origin=$FROM&destination=$TO&sensor=false" \
+2>/dev/null >google_map.xml
+gpsbabel -i googledir -f google_map.xml -o gpx -F google_map.gpx
 ]]></programlisting>